package com.yan.service;

import com.yan.dao.UserDao;
import com.yan.dao.UserDaoImpl;
import com.yan.dao.UserMysqlImpl;

//业务层调dao层除了继承还有个组合
public class UserServiceImpl implements UserService{
    private UserDao userDao;

    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
    @Override
    public void getUser() {
        userDao.getUser();

    }
}
